package com.yuw.homework06;

public class LiteratureStudent extends Student {

    private double speechScore;
    private double workScore;

    // 行为

    public LiteratureStudent() {
    }

    public LiteratureStudent(String stuName, String stuSex, Integer stuAge, String stuNum, Double stuMiddleScore, Double stuLastScore, Double speechScore, Double workScore) {
        super(stuName, stuSex, stuAge, stuNum, stuMiddleScore, stuLastScore);
        this.speechScore = speechScore;
        this.workScore = workScore;
    }

    public Double getSpeechScore() {
        return speechScore;
    }

    public void setSpeechScore(Double speechScore) {
        this.speechScore = speechScore;
    }

    public Double getWorkScore() {
        return workScore;
    }

    public void setWorkScore(Double workScore) {
        this.workScore = workScore;
    }

    @Override
    public double caculateScore() {
        return this.speechScore * 0.35 + this.workScore * 0.35 + this.getStuLastScore() * 0.15
                + this.getStuMiddleScore() * 0.15;
    }
}
